package com.com.typhoon.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shuya | dongfeng.zdf@alibaba-inc.com
 * @description
 * @date 2018/10/24 下午7:43
 * @description
 * @modified by
 * @since V2.0.0
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "hello,world!";
    }

    @GetMapping("favicon.ico")
    public void disableFavicon() {
        //Method is void to avoid browser 404 issue by returning nothing in the response.
    }

}
